Default to appending to "extra" in XenConfig.
authorEwan Mellor <ewan@xensource.com>
Mon, 23 Oct 2006 09:17:10 +0000 (10:17 +0100)
committerEwan Mellor <ewan@xensource.com>
Mon, 23 Oct 2006 09:17:10 +0000 (10:17 +0100)
PowerPC needs console information from the command line.  Resetting the whole
command line causes false failures.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
tools/xm-test/lib/XmTestLib/XenDomain.py

index 0a47a9808935e17377f5ca6bb7ec168f478b85ff..40aaebf9b407ddd0ff24d3b5e694eceb00594ef5 100644 (file)
@@ -102,6 +102,9 @@ class XenConfig:
         if name in self.opts.keys() and isinstance(self.opts[name] ,
                                         list) and not isinstance(value, list):
                 self.opts[name] = [value]
+        # "extra" is special so append to it.
+        elif name == "extra" and name in self.opts.keys():
+            self.opts[name] += " %s" % (value)
         else:
             self.opts[name] = value